package org.wanho.rent.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品
 * <一句话功能简述>
 *  

 * @version  [V1.00, 1-30]
 * @see  [相关类/方法]
 * @since V1.00
 */
public class Product implements Serializable{
    
    /**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 8853934568994557591L;

	private Integer id;
    
    private String proName;
    
    /**
     * 产品最低利率
     */
    private Double rateFrom;
    
    /**
     * 产品最高利率
     */
    private Double rateTo;
    
    /**
     * 企业id-外键-Company-id
     */
    private Integer companyId;
    private Company company;
    
    
    /**
     * 产品最低放贷金额(万)
     */
    private Integer amountFrom;
    
    /**
     * 产品最高放款金额(万)
     */
    private Integer amountTo;
    
    /**
     * 产品类型-外键-ProductType-id
     */
    private Integer typeId;
    private ProductType productType;
    
    /**
     * 产品贷款周期-LeadingPeriod-id
     */
    private Integer periodId;
    private LeadingPeriod period;
    
    public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public ProductType getProductType() {
		return productType;
	}

	public void setProductType(ProductType productType) {
		this.productType = productType;
	}

	public LeadingPeriod getPeriod() {
		return period;
	}

	public void setPeriod(LeadingPeriod period) {
		this.period = period;
	}

	/**
     * 联系人
     */
    private String linkMan;
    
    /**
     * 联系银行
     */
    private String linkBank;
    
    /**
     * 内容
     */
    private String content;
    
    /**
     * 产品创建时间
     */
    private Date creatDate;
    
    public Product() {
    }
    
    public Product(Integer id, String proName, Double rateFrom, Double rateTo,
			Integer companyId, Integer amountFrom, Integer amountTo,
			Integer typeId, Integer periodId, String linkMan, String linkBank,
			String content, Date creatDate) {
		super();
		this.id = id;
		this.proName = proName;
		this.rateFrom = rateFrom;
		this.rateTo = rateTo;
		this.companyId = companyId;
		this.amountFrom = amountFrom;
		this.amountTo = amountTo;
		this.typeId = typeId;
		this.periodId = periodId;
		this.linkMan = linkMan;
		this.linkBank = linkBank;
		this.content = content;
		this.creatDate = creatDate;
	}



	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public Double getRateFrom() {
        return rateFrom;
    }

    public void setRateFrom(Double rateFrom) {
        this.rateFrom = rateFrom;
    }

    public Double getRateTo() {
        return rateTo;
    }

    public void setRateTo(Double rateTo) {
        this.rateTo = rateTo;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getAmountFrom() {
        return amountFrom;
    }

    public void setAmountFrom(Integer amountFrom) {
        this.amountFrom = amountFrom;
    }

    public Integer getAmountTo() {
        return amountTo;
    }

    public void setAmountTo(Integer amountTo) {
        this.amountTo = amountTo;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getPeriodId() {
        return periodId;
    }

    public void setPeriodId(Integer periodId) {
        this.periodId = periodId;
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getLinkBank() {
        return linkBank;
    }

    public void setLinkBank(String linkBank) {
        this.linkBank = linkBank;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

	public Date getCreatDate() {
		return creatDate;
	}

	public void setCreatDate(Date creatDate) {
		this.creatDate = creatDate;
	}

	@Override
	public String toString() {
		return "Product [id=" + id + ", proName=" + proName + ", rateFrom=" + rateFrom + ", rateTo=" + rateTo
				+ ", companyId=" + companyId + ", company=" + company + ", amountFrom=" + amountFrom + ", amountTo="
				+ amountTo + ", typeId=" + typeId + ", productType=" + productType + ", periodId=" + periodId
				+ ", period=" + period + ", linkMan=" + linkMan + ", linkBank=" + linkBank + ", content=" + content
				+ ", creatDate=" + creatDate + "]";
	}

	

}
